package com.example.lhsama.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.lhsama.dao.PermissionMapper;
import com.example.lhsama.domain.Permission;
import com.example.lhsama.domain.Role;
import com.example.lhsama.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Date: 2021年09月19日 15:18
 * @Author: LHSAMA
 */
@Transactional
@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements PermissionService {

    @Autowired
    private PermissionMapper permissionMapper;
    @Override
    public List<String> selectRoleNamesByURI(String uri) {
        return permissionMapper.selectRoleNamesByURI(uri);
    }
}
